# import demjson
#
# json_string = '/* This is a comment */ {"name": "John Doe", "age": 30} // Another comment'
# data = demjson.decode(json_string)
# print(data)

import re
import json
def parse_json(response):
    match = re.search(r'\{.*\}', response)
    if match:
        data = json.loads(match.group())
        return data
    else:
        return {}

response = "Some text here {\"key\": \"value\",\"2\":{\"test\":\"success\"}} and some more text."
print(parse_json(response))